home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / mactool / initstck.sit / INITInfo Stack 4.3.1 / background_4671.xml < prev    next >
Encoding:
Extensible Markup Language  |  1991-01-23  |  22.0 KB  |  700 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>4671</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_4886.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_101984.css" />
  11.     <part>
  12.         <id>19</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>9</left>
  23.             <top>68</top>
  24.             <right>445</right>
  25.             <bottom>94</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>New York</font>
  37.         <textSize>18</textSize>
  38.         <textStyle>bold</textStyle>
  39.         <textHeight>24</textHeight>
  40.         <name>Title</name>
  41.         <script>on mouseUp
  42. checkHelp 17
  43. end mouseUp</script>
  44.     </part>
  45.     <part>
  46.         <id>45</id>
  47.         <type>field</type>
  48.         <visible> <true /> </visible>
  49.         <dontWrap> <false /> </dontWrap>
  50.         <dontSearch> <false /> </dontSearch>
  51.         <sharedText> <false /> </sharedText>
  52.         <fixedLineHeight> <true /> </fixedLineHeight>
  53.         <autoTab> <false /> </autoTab>
  54.         <lockText> <true /> </lockText>
  55.         <rect>
  56.             <left>5</left>
  57.             <top>103</top>
  58.             <right>508</right>
  59.             <bottom>185</bottom>
  60.         </rect>
  61.         <style>scrolling</style>
  62.         <autoSelect> <false /> </autoSelect>
  63.         <showLines> <false /> </showLines>
  64.         <wideMargins> <false /> </wideMargins>
  65.         <multipleLines> <false /> </multipleLines>
  66.         <reservedFamily> 0 </reservedFamily>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>left</textAlign>
  70.         <font>New York</font>
  71.         <textSize>10</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <textHeight>13</textHeight>
  74.         <name>description</name>
  75.         <script>on mouseUp
  76. checkHelp 21
  77. checkHotText
  78. end mouseUp</script>
  79.     </part>
  80.     <part>
  81.         <id>8</id>
  82.         <type>button</type>
  83.         <visible> <true /> </visible>
  84.         <reserved5> 0 </reserved5>
  85.         <reserved4> 0 </reserved4>
  86.         <reserved3> 0 </reserved3>
  87.         <reserved2> 0 </reserved2>
  88.         <reserved1> 0 </reserved1>
  89.         <enabled> <true /> </enabled>
  90.         <rect>
  91.             <left>12</left>
  92.             <top>24</top>
  93.             <right>44</right>
  94.             <bottom>54</bottom>
  95.         </rect>
  96.         <style>transparent</style>
  97.         <showName> <false /> </showName>
  98.         <highlight> <false /> </highlight>
  99.         <autoHighlight> <true /> </autoHighlight>
  100.         <sharedHighlight> <true /> </sharedHighlight>
  101.         <family>0</family>
  102.         <titleWidth>0</titleWidth>
  103.         <icon>20098</icon>
  104.         <textAlign>center</textAlign>
  105.         <font>Chicago</font>
  106.         <textSize>12</textSize>
  107.         <textStyle>plain</textStyle>
  108.         <name>Home</name>
  109.         <script>on mouseUp
  110. goHome
  111. end mouseUp
  112. </script>
  113.     </part>
  114.     <part>
  115.         <id>18</id>
  116.         <type>button</type>
  117.         <visible> <true /> </visible>
  118.         <reserved5> 0 </reserved5>
  119.         <reserved4> 0 </reserved4>
  120.         <reserved3> 0 </reserved3>
  121.         <reserved2> 0 </reserved2>
  122.         <reserved1> 0 </reserved1>
  123.         <enabled> <true /> </enabled>
  124.         <rect>
  125.             <left>216</left>
  126.             <top>317</top>
  127.             <right>293</right>
  128.             <bottom>338</bottom>
  129.         </rect>
  130.         <style>transparent</style>
  131.         <showName> <false /> </showName>
  132.         <highlight> <false /> </highlight>
  133.         <autoHighlight> <true /> </autoHighlight>
  134.         <sharedHighlight> <true /> </sharedHighlight>
  135.         <family>0</family>
  136.         <titleWidth>0</titleWidth>
  137.         <icon>0</icon>
  138.         <textAlign>center</textAlign>
  139.         <font>Chicago</font>
  140.         <textSize>12</textSize>
  141.         <textStyle>plain</textStyle>
  142.         <name>Contents</name>
  143.         <script>on mouseUp
  144. goContents
  145. end mouseUp
  146. </script>
  147.     </part>
  148.     <part>
  149.         <id>20</id>
  150.         <type>field</type>
  151.         <visible> <true /> </visible>
  152.         <dontWrap> <false /> </dontWrap>
  153.         <dontSearch> <false /> </dontSearch>
  154.         <sharedText> <false /> </sharedText>
  155.         <fixedLineHeight> <true /> </fixedLineHeight>
  156.         <autoTab> <false /> </autoTab>
  157.         <lockText> <true /> </lockText>
  158.         <rect>
  159.             <left>5</left>
  160.             <top>189</top>
  161.             <right>508</right>
  162.             <bottom>311</bottom>
  163.         </rect>
  164.         <style>scrolling</style>
  165.         <autoSelect> <false /> </autoSelect>
  166.         <showLines> <false /> </showLines>
  167.         <wideMargins> <false /> </wideMargins>
  168.         <multipleLines> <false /> </multipleLines>
  169.         <reservedFamily> 0 </reservedFamily>
  170.         <titleWidth>0</titleWidth>
  171.         <icon>0</icon>
  172.         <textAlign>left</textAlign>
  173.         <font>New York</font>
  174.         <textSize>10</textSize>
  175.         <textStyle>plain</textStyle>
  176.         <textHeight>13</textHeight>
  177.         <name>contents</name>
  178.         <script>on mouseUp
  179. checkHelp 22
  180. checkHotText
  181. end mouseUp</script>
  182.     </part>
  183.     <part>
  184.         <id>21</id>
  185.         <type>button</type>
  186.         <visible> <true /> </visible>
  187.         <reserved5> 0 </reserved5>
  188.         <reserved4> 0 </reserved4>
  189.         <reserved3> 0 </reserved3>
  190.         <reserved2> 0 </reserved2>
  191.         <reserved1> 0 </reserved1>
  192.         <enabled> <true /> </enabled>
  193.         <rect>
  194.             <left>449</left>
  195.             <top>317</top>
  196.             <right>504</right>
  197.             <bottom>338</bottom>
  198.         </rect>
  199.         <style>transparent</style>
  200.         <showName> <false /> </showName>
  201.         <highlight> <false /> </highlight>
  202.         <autoHighlight> <true /> </autoHighlight>
  203.         <sharedHighlight> <true /> </sharedHighlight>
  204.         <family>0</family>
  205.         <titleWidth>0</titleWidth>
  206.         <icon>0</icon>
  207.         <textAlign>center</textAlign>
  208.         <font>Chicago</font>
  209.         <textSize>12</textSize>
  210.         <textStyle>plain</textStyle>
  211.         <name>Index</name>
  212.         <script>on mouseUp
  213. goIndex
  214. end mouseUp
  215. </script>
  216.     </part>
  217.     <part>
  218.         <id>23</id>
  219.         <type>button</type>
  220.         <visible> <true /> </visible>
  221.         <reserved5> 0 </reserved5>
  222.         <reserved4> 0 </reserved4>
  223.         <reserved3> 0 </reserved3>
  224.         <reserved2> 0 </reserved2>
  225.         <reserved1> 0 </reserved1>
  226.         <enabled> <true /> </enabled>
  227.         <rect>
  228.             <left>187</left>
  229.             <top>317</top>
  230.             <right>215</right>
  231.             <bottom>338</bottom>
  232.         </rect>
  233.         <style>transparent</style>
  234.         <showName> <false /> </showName>
  235.         <highlight> <false /> </highlight>
  236.         <autoHighlight> <true /> </autoHighlight>
  237.         <sharedHighlight> <true /> </sharedHighlight>
  238.         <family>0</family>
  239.         <titleWidth>0</titleWidth>
  240.         <icon>0</icon>
  241.         <textAlign>center</textAlign>
  242.         <font>Chicago</font>
  243.         <textSize>12</textSize>
  244.         <textStyle>plain</textStyle>
  245.         <name>prev</name>
  246.         <script>on mouseUp
  247. prevCard
  248. end mouseUp
  249. </script>
  250.     </part>
  251.     <part>
  252.         <id>24</id>
  253.         <type>button</type>
  254.         <visible> <true /> </visible>
  255.         <reserved5> 0 </reserved5>
  256.         <reserved4> 0 </reserved4>
  257.         <reserved3> 0 </reserved3>
  258.         <reserved2> 0 </reserved2>
  259.         <reserved1> 0 </reserved1>
  260.         <enabled> <true /> </enabled>
  261.         <rect>
  262.             <left>294</left>
  263.             <top>317</top>
  264.             <right>322</right>
  265.             <bottom>338</bottom>
  266.         </rect>
  267.         <style>transparent</style>
  268.         <showName> <false /> </showName>
  269.         <highlight> <false /> </highlight>
  270.         <autoHighlight> <true /> </autoHighlight>
  271.         <sharedHighlight> <true /> </sharedHighlight>
  272.         <family>0</family>
  273.         <titleWidth>0</titleWidth>
  274.         <icon>0</icon>
  275.         <textAlign>center</textAlign>
  276.         <font>Chicago</font>
  277.         <textSize>12</textSize>
  278.         <textStyle>plain</textStyle>
  279.         <name>next</name>
  280.         <script>on mouseUp
  281. nextCard
  282. end mouseUp
  283. </script>
  284.     </part>
  285.     <part>
  286.         <id>27</id>
  287.         <type>button</type>
  288.         <visible> <true /> </visible>
  289.         <reserved5> 0 </reserved5>
  290.         <reserved4> 0 </reserved4>
  291.         <reserved3> 0 </reserved3>
  292.         <reserved2> 0 </reserved2>
  293.         <reserved1> 0 </reserved1>
  294.         <enabled> <true /> </enabled>
  295.         <rect>
  296.             <left>8</left>
  297.             <top>317</top>
  298.             <right>63</right>
  299.             <bottom>338</bottom>
  300.         </rect>
  301.         <style>transparent</style>
  302.         <showName> <false /> </showName>
  303.         <highlight> <false /> </highlight>
  304.         <autoHighlight> <true /> </autoHighlight>
  305.         <sharedHighlight> <true /> </sharedHighlight>
  306.         <family>0</family>
  307.         <titleWidth>0</titleWidth>
  308.         <icon>0</icon>
  309.         <textAlign>center</textAlign>
  310.         <font>Chicago</font>
  311.         <textSize>12</textSize>
  312.         <textStyle>plain</textStyle>
  313.         <name>Find</name>
  314.         <script>on mouseUp
  315. find1
  316. end mouseUp
  317. </script>
  318.     </part>
  319.     <part>
  320.         <id>28</id>
  321.         <type>button</type>
  322.         <visible> <true /> </visible>
  323.         <reserved5> 0 </reserved5>
  324.         <reserved4> 0 </reserved4>
  325.         <reserved3> 0 </reserved3>
  326.         <reserved2> 0 </reserved2>
  327.         <reserved1> 0 </reserved1>
  328.         <enabled> <true /> </enabled>
  329.         <rect>
  330.             <left>64</left>
  331.             <top>317</top>
  332.             <right>119</right>
  333.             <bottom>338</bottom>
  334.         </rect>
  335.         <style>transparent</style>
  336.         <showName> <false /> </showName>
  337.         <highlight> <false /> </highlight>
  338.         <autoHighlight> <true /> </autoHighlight>
  339.         <sharedHighlight> <true /> </sharedHighlight>
  340.         <family>0</family>
  341.         <titleWidth>0</titleWidth>
  342.         <icon>0</icon>
  343.         <textAlign>center</textAlign>
  344.         <font>Chicago</font>
  345.         <textSize>12</textSize>
  346.         <textStyle>plain</textStyle>
  347.         <name>Again</name>
  348.         <script>on mouseUp
  349. findAgain
  350. end mouseUp
  351. </script>
  352.     </part>
  353.     <part>
  354.         <id>32</id>
  355.         <type>button</type>
  356.         <visible> <true /> </visible>
  357.         <reserved5> 0 </reserved5>
  358.         <reserved4> 0 </reserved4>
  359.         <reserved3> 0 </reserved3>
  360.         <reserved2> 0 </reserved2>
  361.         <reserved1> 0 </reserved1>
  362.         <enabled> <true /> </enabled>
  363.         <rect>
  364.             <left>470</left>
  365.             <top>61</top>
  366.             <right>509</right>
  367.             <bottom>100</bottom>
  368.         </rect>
  369.         <style>transparent</style>
  370.         <showName> <false /> </showName>
  371.         <highlight> <false /> </highlight>
  372.         <autoHighlight> <true /> </autoHighlight>
  373.         <sharedHighlight> <true /> </sharedHighlight>
  374.         <family>0</family>
  375.         <titleWidth>0</titleWidth>
  376.         <icon>0</icon>
  377.         <textAlign>center</textAlign>
  378.         <font>Chicago</font>
  379.         <textSize>12</textSize>
  380.         <textStyle>plain</textStyle>
  381.         <name>From</name>
  382.         <script>on mouseUp
  383. checkHelp 14
  384. lock screen
  385. show bkgnd field "Product Info"
  386. show bkgnd button "This product is from:"
  387. show bkgnd button "Close Info"
  388. show bkgnd button "Copy to Clipboard"
  389. unlock screen with zoom open
  390. end mouseUp
  391. </script>
  392.     </part>
  393.     <part>
  394.         <id>33</id>
  395.         <type>button</type>
  396.         <visible> <false /> </visible>
  397.         <reserved5> 0 </reserved5>
  398.         <reserved4> 0 </reserved4>
  399.         <reserved3> 0 </reserved3>
  400.         <reserved2> 0 </reserved2>
  401.         <reserved1> 0 </reserved1>
  402.         <enabled> <true /> </enabled>
  403.         <rect>
  404.             <left>215</left>
  405.             <top>126</top>
  406.             <right>438</right>
  407.             <bottom>143</bottom>
  408.         </rect>
  409.         <style>opaque</style>
  410.         <showName> <true /> </showName>
  411.         <highlight> <true /> </highlight>
  412.         <autoHighlight> <false /> </autoHighlight>
  413.         <sharedHighlight> <true /> </sharedHighlight>
  414.         <family>0</family>
  415.         <titleWidth>0</titleWidth>
  416.         <icon>0</icon>
  417.         <textAlign>center</textAlign>
  418.         <font>Chicago</font>
  419.         <textSize>12</textSize>
  420.         <textStyle>plain</textStyle>
  421.         <name>This product is from:</name>
  422.         <script></script>
  423.     </part>
  424.     <part>
  425.         <id>34</id>
  426.         <type>field</type>
  427.         <visible> <false /> </visible>
  428.         <dontWrap> <false /> </dontWrap>
  429.         <dontSearch> <false /> </dontSearch>
  430.         <sharedText> <false /> </sharedText>
  431.         <fixedLineHeight> <true /> </fixedLineHeight>
  432.         <autoTab> <false /> </autoTab>
  433.         <lockText> <true /> </lockText>
  434.         <rect>
  435.             <left>215</left>
  436.             <top>143</top>
  437.             <right>440</right>
  438.             <bottom>259</bottom>
  439.         </rect>
  440.         <style>shadow</style>
  441.         <autoSelect> <false /> </autoSelect>
  442.         <showLines> <false /> </showLines>
  443.         <wideMargins> <true /> </wideMargins>
  444.         <multipleLines> <false /> </multipleLines>
  445.         <reservedFamily> 0 </reservedFamily>
  446.         <titleWidth>0</titleWidth>
  447.         <icon>0</icon>
  448.         <textAlign>left</textAlign>
  449.         <font>Geneva</font>
  450.         <textSize>9</textSize>
  451.         <textStyle>plain</textStyle>
  452.         <textHeight>12</textHeight>
  453.         <name>Product Info</name>
  454.         <script>on mouseUp
  455. checkHelp 23
  456. end mouseUp</script>
  457.     </part>
  458.     <part>
  459.         <id>35</id>
  460.         <type>button</type>
  461.         <visible> <false /> </visible>
  462.         <reserved5> 0 </reserved5>
  463.         <reserved4> 0 </reserved4>
  464.         <reserved3> 0 </reserved3>
  465.         <reserved2> 0 </reserved2>
  466.         <reserved1> 0 </reserved1>
  467.         <enabled> <true /> </enabled>
  468.         <rect>
  469.             <left>220</left>
  470.             <top>129</top>
  471.             <right>234</right>
  472.             <bottom>141</bottom>
  473.         </rect>
  474.         <style>transparent</style>
  475.         <showName> <false /> </showName>
  476.         <highlight> <false /> </highlight>
  477.         <autoHighlight> <false /> </autoHighlight>
  478.         <sharedHighlight> <true /> </sharedHighlight>
  479.         <family>0</family>
  480.         <titleWidth>0</titleWidth>
  481.         <icon>3071</icon>
  482.         <textAlign>center</textAlign>
  483.         <font>Chicago</font>
  484.         <textSize>12</textSize>
  485.         <textStyle>plain</textStyle>
  486.         <name>Close Info</name>
  487.         <script>on mouseStillDown
  488. if the optionKey is down then exit mouseStillDown
  489. if the mouseLoc is within the rect of me then
  490. if the icon of me is 3071 then -- 3071 is "close box"
  491. set the icon of me to "clicked close box"
  492. end if
  493. else
  494. if the icon of me is 3358 then -- 3358 is "clicked close box"
  495. set the icon of me to "close box"
  496. end if
  497. end if
  498. end mouseStillDown
  499.  
  500. ----------------------------------------------------------------------
  501. on mouseUp
  502. checkHelp 15
  503. set the icon of me to "close box"
  504. lock screen
  505. hide bkgnd field "Product Info"
  506. hide bkgnd button "This product is from:"
  507. hide bkgnd button "Close Info"
  508. hide bkgnd button "Copy to Clipboard"
  509. unlock screen with zoom close
  510. end mouseUp</script>
  511.     </part>
  512.     <part>
  513.         <id>36</id>
  514.         <type>button</type>
  515.         <visible> <false /> </visible>
  516.         <reserved5> 0 </reserved5>
  517.         <reserved4> 0 </reserved4>
  518.         <reserved3> 0 </reserved3>
  519.         <reserved2> 0 </reserved2>
  520.         <reserved1> 0 </reserved1>
  521.         <enabled> <true /> </enabled>
  522.         <rect>
  523.             <left>327</left>
  524.             <top>236</top>
  525.             <right>434</right>
  526.             <bottom>253</bottom>
  527.         </rect>
  528.         <style>roundrect</style>
  529.         <showName> <true /> </showName>
  530.         <highlight> <false /> </highlight>
  531.         <autoHighlight> <true /> </autoHighlight>
  532.         <sharedHighlight> <true /> </sharedHighlight>
  533.         <family>0</family>
  534.         <titleWidth>0</titleWidth>
  535.         <icon>0</icon>
  536.         <textAlign>center</textAlign>
  537.         <font>Geneva</font>
  538.         <textSize>9</textSize>
  539.         <textStyle>bold</textStyle>
  540.         <name>Copy to Clipboard</name>
  541.         <script>on mouseUp
  542. checkHelp 16
  543. set the cursor to watch
  544. lock screen
  545. select text of bkgnd field "Product Info"
  546. doMenu "Copy Text"   -- copy contents into clipboard
  547. select empty  -- de-selects the text
  548. unlock screen
  549. end mouseUp
  550. </script>
  551.     </part>
  552.     <part>
  553.         <id>37</id>
  554.         <type>button</type>
  555.         <visible> <true /> </visible>
  556.         <reserved5> 0 </reserved5>
  557.         <reserved4> 0 </reserved4>
  558.         <reserved3> 0 </reserved3>
  559.         <reserved2> 0 </reserved2>
  560.         <reserved1> 0 </reserved1>
  561.         <enabled> <true /> </enabled>
  562.         <rect>
  563.             <left>323</left>
  564.             <top>317</top>
  565.             <right>351</right>
  566.             <bottom>338</bottom>
  567.         </rect>
  568.         <style>transparent</style>
  569.         <showName> <false /> </showName>
  570.         <highlight> <false /> </highlight>
  571.         <autoHighlight> <true /> </autoHighlight>
  572.         <sharedHighlight> <true /> </sharedHighlight>
  573.         <family>0</family>
  574.         <titleWidth>0</titleWidth>
  575.         <icon>0</icon>
  576.         <textAlign>center</textAlign>
  577.         <font>Chicago</font>
  578.         <textSize>12</textSize>
  579.         <textStyle>plain</textStyle>
  580.         <name>next2</name>
  581.         <script>on mouseUp
  582. nextSection
  583. end mouseUp
  584. </script>
  585.     </part>
  586.     <part>
  587.         <id>38</id>
  588.         <type>button</type>
  589.         <visible> <true /> </visible>
  590.         <reserved5> 0 </reserved5>
  591.         <reserved4> 0 </reserved4>
  592.         <reserved3> 0 </reserved3>
  593.         <reserved2> 0 </reserved2>
  594.         <reserved1> 0 </reserved1>
  595.         <enabled> <true /> </enabled>
  596.         <rect>
  597.             <left>158</left>
  598.             <top>317</top>
  599.             <right>186</right>
  600.             <bottom>338</bottom>
  601.         </rect>
  602.         <style>transparent</style>
  603.         <showName> <false /> </showName>
  604.         <highlight> <false /> </highlight>
  605.         <autoHighlight> <true /> </autoHighlight>
  606.         <sharedHighlight> <true /> </sharedHighlight>
  607.         <family>0</family>
  608.         <titleWidth>0</titleWidth>
  609.         <icon>0</icon>
  610.         <textAlign>center</textAlign>
  611.         <font>Chicago</font>
  612.         <textSize>12</textSize>
  613.         <textStyle>plain</textStyle>
  614.         <name>prev2</name>
  615.         <script>on mouseUp
  616. prevSection
  617. end mouseUp
  618. </script>
  619.     </part>
  620.     <part>
  621.         <id>40</id>
  622.         <type>button</type>
  623.         <visible> <true /> </visible>
  624.         <reserved5> 0 </reserved5>
  625.         <reserved4> 0 </reserved4>
  626.         <reserved3> 0 </reserved3>
  627.         <reserved2> 0 </reserved2>
  628.         <reserved1> 0 </reserved1>
  629.         <enabled> <true /> </enabled>
  630.         <rect>
  631.             <left>48</left>
  632.             <top>23</top>
  633.             <right>82</right>
  634.             <bottom>55</bottom>
  635.         </rect>
  636.         <style>transparent</style>
  637.         <showName> <false /> </showName>
  638.         <highlight> <false /> </highlight>
  639.         <autoHighlight> <true /> </autoHighlight>
  640.         <sharedHighlight> <true /> </sharedHighlight>
  641.         <family>0</family>
  642.         <titleWidth>0</titleWidth>
  643.         <icon>16321</icon>
  644.         <textAlign>center</textAlign>
  645.         <font>Chicago</font>
  646.         <textSize>12</textSize>
  647.         <textStyle>plain</textStyle>
  648.         <name>help</name>
  649.         <script>on mouseUp
  650. helpButton
  651. end mouseUp
  652. </script>
  653.     </part>
  654.     <part>
  655.         <id>41</id>
  656.         <type>button</type>
  657.         <visible> <false /> </visible>
  658.         <reserved5> 0 </reserved5>
  659.         <reserved4> 0 </reserved4>
  660.         <reserved3> 0 </reserved3>
  661.         <reserved2> 0 </reserved2>
  662.         <reserved1> 0 </reserved1>
  663.         <enabled> <true /> </enabled>
  664.         <rect>
  665.             <left>100</left>
  666.             <top>33</top>
  667.             <right>155</right>
  668.             <bottom>48</bottom>
  669.         </rect>
  670.         <style>roundrect</style>
  671.         <showName> <true /> </showName>
  672.         <highlight> <false /> </highlight>
  673.         <autoHighlight> <true /> </autoHighlight>
  674.         <sharedHighlight> <true /> </sharedHighlight>
  675.         <family>0</family>
  676.         <titleWidth>0</titleWidth>
  677.         <icon>0</icon>
  678.         <textAlign>center</textAlign>
  679.         <font>Geneva</font>
  680.         <textSize>9</textSize>
  681.         <textStyle>bold</textStyle>
  682.         <name>add card</name>
  683.         <script>on mouseUp
  684. repeat  -- get card title
  685. ask "Enter title (18 characters max):"
  686. put it into response
  687. if response is empty then
  688. exit mouseUp
  689. else if length (response) > 18 then
  690. answer "The title must be at most 18 characters long."
  691. else
  692. put response into newCardName
  693. exit repeat
  694. end if
  695. end repeat
  696. set the cursor to watch
  697. set the lockMessages to true
  698. set the lockScreen to true
  699. put the number of cards of this bkgnd into numCards
  700. go to card 1 of this bkgnd
  701. if newCardName < (the short name of this card) then
  702. addFirst newCardName  -- special case: first card
  703. else
  704. repeat with i = 1 to numCards
  705. go to card i of this bkgnd
  706. if newCardName = the short name of this card then
  707. set the lockScreen to false
  708. answer "Already have a card for" && newCardName &"."
  709. exit repeat
  710. else if newCardName < the short name of this card then
  711. go to prev card
  712. addAfter newCardName
  713. exit repeat
  714. else if i = numCards then -- add after last
  715. addAfter newCardName
  716. exit repeat
  717. end if
  718. end repeat
  719. end if
  720. end mouseUp
  721.  
  722. ----------------------------------------------------------------------
  723. on addAfter newCardName
  724. doMenu "New Card"
  725. set the name of this card to newCardName
  726. put newCardName into field "title"
  727. end addAfter
  728.  
  729. ----------------------------------------------------------------------
  730. on addFirst newCardName
  731. doMenu "Copy Card"
  732. doMenu "Paste Card"
  733. go to prev card
  734. set the name of this card to newCardName
  735. put newCardName into field "title"
  736. put empty into field "description"
  737. put empty into field "contents"
  738. put empty into field "product info"
  739. choose select tool
  740. drag from the topLeft of bg btn "from" to the botRight of bg btn "from"
  741. doMenu "Clear Picture"
  742. choose browse tool
  743. end addFirst</script>
  744.     </part>
  745.     <part>
  746.         <id>42</id>
  747.         <type>button</type>
  748.         <visible> <false /> </visible>
  749.         <reserved5> 0 </reserved5>
  750.         <reserved4> 0 </reserved4>
  751.         <reserved3> 0 </reserved3>
  752.         <reserved2> 0 </reserved2>
  753.         <reserved1> 0 </reserved1>
  754.         <enabled> <true /> </enabled>
  755.         <rect>
  756.             <left>159</left>
  757.             <top>33</top>
  758.             <right>214</right>
  759.             <bottom>48</bottom>
  760.         </rect>
  761.         <style>roundrect</style>
  762.         <showName> <true /> </showName>
  763.         <highlight> <false /> </highlight>
  764.         <autoHighlight> <true /> </autoHighlight>
  765.         <sharedHighlight> <true /> </sharedHighlight>
  766.         <family>0</family>
  767.         <titleWidth>0</titleWidth>
  768.         <icon>0</icon>
  769.         <textAlign>center</textAlign>
  770.         <font>Geneva</font>
  771.         <textSize>9</textSize>
  772.         <textStyle>bold</textStyle>
  773.         <name>del card</name>
  774.         <script>on mouseUp
  775. doMenu "Delete Card"
  776. end mouseUp
  777. </script>
  778.     </part>
  779.     <part>
  780.         <id>43</id>
  781.         <type>button</type>
  782.         <visible> <false /> </visible>
  783.         <reserved5> 0 </reserved5>
  784.         <reserved4> 0 </reserved4>
  785.         <reserved3> 0 </reserved3>
  786.         <reserved2> 0 </reserved2>
  787.         <reserved1> 0 </reserved1>
  788.         <enabled> <true /> </enabled>
  789.         <rect>
  790.             <left>218</left>
  791.             <top>33</top>
  792.             <right>297</right>
  793.             <bottom>48</bottom>
  794.         </rect>
  795.         <style>roundrect</style>
  796.         <showName> <true /> </showName>
  797.         <highlight> <false /> </highlight>
  798.         <autoHighlight> <true /> </autoHighlight>
  799.         <sharedHighlight> <true /> </sharedHighlight>
  800.         <family>0</family>
  801.         <titleWidth>0</titleWidth>
  802.         <icon>0</icon>
  803.         <textAlign>center</textAlign>
  804.         <font>Geneva</font>
  805.         <textSize>9</textSize>
  806.         <textStyle>bold</textStyle>
  807.         <name>rebuild index</name>
  808.         <script>on mouseUp
  809. set the lockMessages to true
  810. set the lockScreen to true
  811. set the cursor to busy
  812. put empty into list1
  813. put empty into list2
  814. put the number of cards of this bkgnd into numCards
  815. repeat with i = 1 to numCards
  816. set the cursor to busy
  817. put bkgnd field "title" of card i of this bkgnd into theName
  818. put theName & return after list1
  819. put space & theName & return after list2
  820. end repeat
  821. set the cursor to busy
  822. delete last char of list1
  823. put list1 into bkgnd field "init index" of card "index"
  824. set the cursor to busy
  825. delete last char of list2
  826. put list2 into card field "init index" of card "custom report"
  827. end mouseUp
  828. </script>
  829.     </part>
  830.     <part>
  831.         <id>44</id>
  832.         <type>button</type>
  833.         <visible> <true /> </visible>
  834.         <reserved5> 0 </reserved5>
  835.         <reserved4> 0 </reserved4>
  836.         <reserved3> 0 </reserved3>
  837.         <reserved2> 0 </reserved2>
  838.         <reserved1> 0 </reserved1>
  839.         <enabled> <true /> </enabled>
  840.         <rect>
  841.             <left>352</left>
  842.             <top>317</top>
  843.             <right>380</right>
  844.             <bottom>338</bottom>
  845.         </rect>
  846.         <style>transparent</style>
  847.         <showName> <false /> </showName>
  848.         <highlight> <false /> </highlight>
  849.         <autoHighlight> <true /> </autoHighlight>
  850.         <sharedHighlight> <true /> </sharedHighlight>
  851.         <family>0</family>
  852.         <titleWidth>0</titleWidth>
  853.         <icon>0</icon>
  854.         <textAlign>center</textAlign>
  855.         <font>Chicago</font>
  856.         <textSize>12</textSize>
  857.         <textStyle>plain</textStyle>
  858.         <name>go back</name>
  859.         <script>on mouseUp
  860. goBack
  861. end mouseUp
  862. </script>
  863.     </part>
  864.     <name>Conflicts</name>
  865.     <script>on arrowKey theKey
  866. myArrowKey theKey
  867. end arrowKey
  868.  
  869. ----------------------------------------------------------------------
  870. on closeBackground
  871. if the visible of bkgnd field "Product Info" then
  872. lock screen
  873. hide bkgnd field "Product Info"
  874. hide bkgnd button "This product is from:"
  875. hide bkgnd button "Close Info"
  876. hide bkgnd button "Copy to Clipboard"
  877. unlock screen
  878. end if
  879. end closeBackground
  880.  
  881. ----------------------------------------------------------------------
  882. on closeCard
  883. set the scroll of bkgnd field "description" to 0
  884. set the scroll of bkgnd field "contents" to 0
  885. end closeCard</script>
  886. </background>
  887.